
<!--<form class="form-horizontal bucket-form" method="get">-->


<div class="col-sm-12">
    <section class="panel">
        <header class="panel-heading wht-bg">
            <h4 class="gen-case"> Redactar Mensaje

                <form action="#" class="pull-right mail-src-position">
                    <div class="input-append">
                        <input type="text" class="form-control " placeholder="Search Mail">
                    </div>
                </form>
            </h4>
        </header>
        <div class="panel-body">
            <div class="compose-btn pull-right">
                <button class="btn btn-primary btn-sm"><i class="fa fa-check"></i> Enviar</button>
                <button class="btn btn-sm"><i class="fa fa-times"></i> Cancelar</button>
                <button class="btn btn-sm">Borrador</button>
            </div>
            <div class="compose-mail">

                <?php echo $this->Form->create('Documento', array('role' => 'form-horizontal', 'method' => 'post')); ?>
                <div class="form-group">
                    <label for="data[Documento][destino_id]" class="">Para:</label>
                    <div class="col-sm-6">
                        <?php //echo $this->Form->select('tipo_id', $dct, array('class'=>'form-control input-lg m-bot15')); ?>
                        <select class="form-control input-lg m-bot15" name="data[Documento][destino_id]">
                            <option value="0">Seleccione...</option>
                            <?php foreach ($dcp as $d): ?>
                                <option value="<?php echo $d['Destino']['id']; ?>"><?php echo $d['Destino']['nombre']; ?></option>
                            <?php endforeach; ?>                                
                        </select>
                    </div>
                    <div class="compose-options">
                        <a onclick="$(this).hide();
                                $('#cc').parent().removeClass('hidden');
                                $('#cc').focus();" href="javascript:;">Cc</a>
                        <a onclick="$(this).hide();
                                $('#bcc').parent().removeClass('hidden');
                                $('#bcc').focus();" href="javascript:;">Bcc</a>
                    </div>
                </div>

                <div class="form-group hidden">
                    <label for="cc" class="">Cc:</label>
                    <input type="text" tabindex="2" id="cc" class="form-control">
                </div>

                <div class="form-group hidden">
                    <label for="bcc" class="">Bcc:</label>
                    <input  type="text" tabindex="2" id="bcc" class="form-control">
                </div>

                <div class="form-group">
                    <label for="data[Documento][tipo_id]" class="">Asunto:</label>
                    <div class="col-sm-6">
                        <?php //echo $this->Form->select('tipo_id', $dct, array('class'=>'form-control input-lg m-bot15')); ?>
                        <select class="form-control input-lg m-bot15" name="data[Documento][tipo_id]">
                            <option value="0">Seleccione...</option>
                            <?php foreach ($dct as $d): ?>
                                <option value="<?php echo $d['Tipo']['id']; ?>"><?php echo $d['Tipo']['nombre']; ?></option>
                            <?php endforeach; ?>                                
                        </select>
                    </div>
                </div>

                <div class="compose-editor">
                    
                    <textarea class="form-control ckeditor" name="data[Documento][contenido]" rows="6"></textarea>
                    <input type="file" class="default" name="data[Documento][contenido]">
            </div>
                </div>
                <div class="compose-btn">
                    <button class="btn btn-primary btn-sm"><i class="fa fa-check"></i> Enviar</button>
                    <button class="btn btn-sm"><i class="fa fa-times"></i> Cancelar</button>
                    <button class="btn btn-sm">Borrador</button>
                </div>

                </form>
            </div>
        </div>
    </section>
</div>
<?php //echo $this->element('scripts/forms');  ?>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/ckeditor/ckeditor.js"></script>